#可变函数
# def fav(*fru):
#     print('我最喜欢的水果有：')
#     for i in fru:
#         print(i)
#
# fav('苹果')
# fav('苹果','橘子','菠萝')
# fav('苹果','香蕉','菠萝','西瓜','桃子','芒果')

#参数的值大于等于2，
# def show(a, b, *l):
#     print(a)
#     print(b)
#     print(l)
#
# show(1, 2, 3, 5, 7, 9, 79)

# #求矩形的面积和周长
# def rect():
#     a = int(input('请输入矩形的长：'))
#     b = int(input('请输入矩形的宽：'))
#     s = a * b
#     c = 2 * (a + b)
#     print('该矩形面积为：', s)
#     print('该矩形周长为：', c)
#
# rect()

#函数返回值
# def add(a, b):
#     c = a + b
#     return c, a, b, a*b, a-b
#
# d = add(1, 2)
# print(d)

# #变量的作用域
# def fun():
#     a = 20
#     return a
#
# a = 10
# print(a)
# print(fun())

def pro(*a):
    for i in a
        if i % 2 == 0
            print('该数据为偶数：')
        if i > 10:
            print('该数据大于10：')

pro(1, 2, 3, 5, 8, 79)